<template>
	<view>
		<view class="Express">
			<view class="info">
				<view :class="{hide:!iSinfo}">
					
					<view class="box architecturalConsulting_main"
						:class="zdmb_isShow==true?'box_animate':'cancle_animate'">
						<view class="architecturalConsultingDiv">
							<text class="architecturalConsultingTxt" v-for="(item,index) in architecturalPerson"
								:key="index">{{item.title}}</text>
						</view>
					</view>			
				</view>
				<text @tap="showinfo" v-if="!iSinfo">展开</text>
			</view>
			<text @tap="showinfo" v-if="iSinfo" class="hidebtn">收起</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				iSinfo: false
			}
		},
		created() {
		},
		methods: {
			showinfo() {
				this.iSinfo = !this.iSinfo
			}
		}
	}
</script>

<style lang="scss" scoped>
	.architecturalConsulting_main {
		margin-bottom: 10rpx;
	
		.architecturalConsultingDiv {
			display: flex;
			flex-wrap: wrap;
			padding: 0 20rpx;
			box-sizing: border-box;
	
			.architecturalConsultingTxt {
				padding: 0 4rpx;
				box-sizing: content-box;
				margin: 0 10rpx 20rpx;
				display: flex;
				height: 38rpx;
				border: 2rpx solid #5cd1ce;
				border-radius: 18rpx;
				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC-Bold;
				font-weight: 700;
				color: #5cd1ce;
				line-height: 36rpx;
			}
		}
	}
	page {
		background-color: #fff;
	}

	.Express {
		display: flex;
		// width: 100%;
		flex-direction: column;
		background-color: #fff;
		padding: 30upx;
		position: relative;

		.info {
			display: flex;
			flex-direction: column;

			view {
				text-align:justify ;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(102, 102, 102, 1);
				word-break: break-word; //换行模式
				background-color: #fff;
			}

			text {
				width: 140rpx;
				font-size: 28rpx;
				display: flex;
				justify-content: flex-end;
				align-items: center;
				background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
				color: #0078FF;
				position: absolute;
				bottom: 30upx;
				right: 30upx;
			}
		}

	}

	.hidebtn {
		display: flex;
		flex: 1;
		justify-content: flex-end;
		color: #0078FF;
		font-size: 28rpx;
	}

	.hide {
		word-break: break-word; //换行模式
		overflow: hidden;
		text-overflow: ellipsis; //修剪文字
		display: -webkit-box;
		-webkit-line-clamp: 2; //此处为上限行数
		-webkit-box-orient: vertical;
	}
</style>

